package com.feicheng.common.message;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@PropertySource(value = {"classpath:application.properties"}, encoding = "UTF-8")
@Component
@Data
@EqualsAndHashCode(callSuper = false)
public class MqttInfo {

    @Value("${spring.mqtt.url}")
    private String url;

    @Value("${spring.mqtt.username}")
    private String username;

    @Value("${spring.mqtt.password}")
    private String password;

    @Value("${spring.mqtt.clientid}")
    private String clientid;

    @Value("${spring.mqtt.host}")
    private String host;

    @Value("${spring.mqtt.port}")
    private String port;

    @Value("${spring.server.url}")
    private String serverUrl;



}
